package com.sixth.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;

import java.io.Serializable;

@Data
public class BranchAndGoods implements Serializable {
    private Integer id;

    private Integer branchid;

    private Integer goodsid;

    private Integer count;

    public Integer getId() {
        return this.id;
    }

    public Integer getBranchid() {
        return this.branchid;
    }

    public Integer getGoodsid() {
        return this.goodsid;
    }

    public Integer getCount() {
        return this.count;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public void setBranchid(Integer branchid) {
        this.branchid = branchid;
    }

    public void setGoodsid(Integer goodsid) {
        this.goodsid = goodsid;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof BranchAndGoods)) {
            return false;
        } else {
            BranchAndGoods other = (BranchAndGoods)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                label59: {
                    Object this$id = this.getId();
                    Object other$id = other.getId();
                    if (this$id == null) {
                        if (other$id == null) {
                            break label59;
                        }
                    } else if (this$id.equals(other$id)) {
                        break label59;
                    }

                    return false;
                }

                Object this$branchid = this.getBranchid();
                Object other$branchid = other.getBranchid();
                if (this$branchid == null) {
                    if (other$branchid != null) {
                        return false;
                    }
                } else if (!this$branchid.equals(other$branchid)) {
                    return false;
                }

                Object this$goodsid = this.getGoodsid();
                Object other$goodsid = other.getGoodsid();
                if (this$goodsid == null) {
                    if (other$goodsid != null) {
                        return false;
                    }
                } else if (!this$goodsid.equals(other$goodsid)) {
                    return false;
                }

                Object this$count = this.getCount();
                Object other$count = other.getCount();
                if (this$count == null) {
                    if (other$count != null) {
                        return false;
                    }
                } else if (!this$count.equals(other$count)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(Object other) {
        return other instanceof BranchAndGoods;
    }

    public int hashCode() {
        boolean PRIME = true;
        int result = 1;
        Object $id = this.getId();
        result = result * 59 + ($id == null ? 43 : $id.hashCode());
        Object $branchid = this.getBranchid();
        result = result * 59 + ($branchid == null ? 43 : $branchid.hashCode());
        Object $goodsid = this.getGoodsid();
        result = result * 59 + ($goodsid == null ? 43 : $goodsid.hashCode());
        Object $count = this.getCount();
        result = result * 59 + ($count == null ? 43 : $count.hashCode());
        return result;
    }

    public String toString() {
        return "BranchAndGoods(id=" + this.getId() + ", branchid=" + this.getBranchid() + ", goodsid=" + this.getGoodsid() + ", count=" + this.getCount() + ")";
    }

    public BranchAndGoods(Integer id, Integer branchid, Integer goodsid, Integer count) {
        this.id = id;
        this.branchid = branchid;
        this.goodsid = goodsid;
        this.count = count;
    }

    public BranchAndGoods() {
    }
}
